let { request_3031, request_3001 } = require("../../utils/https.js");

module.exports = {
  // 意向等级
  intention: (type,khlysm) => {
    return request_3001({
      url: `/attract/intention?type=${type}&khlysm=${khlysm}`,
      method: "get",
    });
  },
  // 新增意向客户
  increased : (data) => {
    return request_3001({
      url: `/attract/increased`,
      method: "post",
      data
    });
  },
  // 意向客户资料更新
  informzscb: (data) => {
    return request_3001({
      url: `/attract/informzscb`,
      method: "post",
      data
    });
  },
  // 联系人编辑
  contacts: (data) => {
    return request_3001({
      url: `/attract/contacts`,
      method: "post",
      data
    });
  },
  contactss: (data) => {
    return request_3001({
      url: `/attract/contactss`,
      method: "post",
      data
    });
  },
  // 联系人新增
  addlink: (data) => {
    return request_3001({
      url: `/attract/addlink`,
      method: "post",
      data
    });
  },
  // 联系人请求
  linkman: (lID) => {
    return request_3001({
      url: `/attract/linkman?lID=${lID}`,
      method: "get",
    });
  },
   // 联系人请求
   linkmans: (khbh) => {
    return request_3001({
      url: `/attract/linkmans?khbh=${khbh}`,
      method: "get",
    });
  },
  // 商机需求
  addsjxq: (data) => {
    return request_3001({
      url: `/attract/addsjxq`,
      method: "post",
      data
    });
  },
  getsjxq: (khbh) => {
    return request_3001({
      url: `/attract/getsjxq?khbh=${khbh}`,
      method: "get",
    });
  },
  editsjxq: (data) => {
    return request_3001({
      url: `/attract/editsjxq`,
      method: "post",
      data
    });
  },
  getInfosjxq: (qxID) => {
    return request_3001({
      url: `/attract/getInfosjxq?qxid=${qxID}`,
      method: "get",
    });
  }, addzcGj: (data) => {
    return request_3001({
      url: `/attract/addzcGj`,
      method: "post",
      data
    });
  },
  addfollowyx: (data) => {
    return request_3001({
      url: `/attract/addfollowyx`,
      method: "post",
      data
    });
  },
  // 待办任务
  getNoTask: (type,zsy,bm,yw=0,year,month) => {
    console.log(year,month)
    return request_3001({
      url: `/attract/taskTJ?type=${type}&zsy=${zsy}&bm=${bm}&yw=${yw}&year=${year}&month=${month}`,
      method: "get",
    });
  }, 
  editTime:(data)=>{
    return request_3001({
      url:`/attract/editTime`,
      method:'post',
      data
    })
  },
  followBC:(data)=>{
    return request_3001({
      url:`/attract/followBC`,
      method:'post',
      data
    })
  },
  
   // 跟进theone
   theonefollow: (data) => {
    console.log(data)
    return request_3001({
      url: `/attract/theonefollow`,
      method: "POST",
      data
    })
  },
   // 跟进file
   hgjfilesfollow: (data) => {
    console.log(data)
    return request_3001({
      url: `/attract/hgjfilesfollow`,
      method: "POST",
      data
    })
  },

  getGjzc: (bid,tjsj) => {
    return request_3001({
      url: `/attract/getGjzc?bid=${bid}&tjsj=${tjsj}`,
      method: "get",
    });
  }, 
  getFllowDetail: (bid,khbh) => {
    return request_3001({
      url: `/attract/follow?bid=${bid}&khbh=${khbh}`,
      method: "get",
    });
  }, 
  updateName:(data)=>{
    return request_3001({
      url:`/attract/updateName`,
      method:'post',
      data
    })
  },
  
  qyinfo:(data)=>{
    return request_3001({
      url:`/register/qyinfo`,
      method:'post',
      data
    })
  }
};
